from ..models.metadata import Metadata


class MetadataService(object):
    @classmethod
    def get_metadata_by_type(cls, type):
        return Metadata.query.filter(Metadata.type == type)